<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>计划管理系统</title>
    <script src="/scripts/boot.js" type="text/javascript"></script>
    <link href="/scripts/res/third-party/scrollbar/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css" />
    <script src="/scripts/res/third-party/scrollbar/jquery.mCustomScrollbar.concat.min.js" type="text/javascript"></script>
    <link href="/res/menu/menu.css" rel="stylesheet" type="text/css" />
    <script src="/res/menu/menu.js" type="text/javascript"></script>
    <script src="/res/menutip.js" type="text/javascript"></script>
    <link href="/res/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/res/frame.css" rel="stylesheet" type="text/css" />
    <link href="/res/index.css" rel="stylesheet" type="text/css" />

</head>
<body>

<div class="navbar" style="background-image:url(/image/banner.jpg);height: 69px;">
    <!--<div class="navbar-header">-->
        <!--<div class="navbar-brand">MiniUI</div>-->
        <!--<div class="navbar-brand navbar-brand-compact">M</div>-->
    <!--</div>-->
    <ul class="nav navbar-nav navbar-right">
        <!--<li ><a href="#"><i class="fa fa-paper-plane"></i> 代办事项</a></li>-->
        <!--<li><a href="#"><i class="fa fa-pencil-square-o"></i> 修改密码</a></li>-->
        <li class="dropdown">
            <a class="dropdown-toggle ">
                <span class="userinfo">个人资料</span><i class="fa fa-angle-down"></i>
            </a>
            <ul class="dropdown-menu pull-right">
                <!--<li ><a href="#"><i class="fa fa-eye "></i> 用户信息</a></li>-->
                <li><a href="/login.html"><i class="fa fa-user"></i> 退出登录</a></li>
            </ul>
        </li>
    </ul>
</div>

<div class="container">

    <div class="sidebar">
        <!--<div class="sidebar-toggle"><i class = "fa fa-fw fa-dedent" ></i></div>-->
        <div id="mainMenu" style="padding-top: 36px">
            <ul class="menu">
                <li class="menu-title-active"><a class="menu-title" target="main-iframe" href="/staging/list.html" id="staging" data-id="staging"><span class="menu-text">工作台</span></a></li>
                <li class="has-children" shiro:hasAnyRoles="root,admin">
                <a class="menu-title" id="dataBase" data-id="dataBase"><span class="menu-text">基础设置</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/dataBase/itemInfo/list.html" id="itemInfo" data-id="itemInfo"><span class="menu-text">设置项目信息</span></a></li>
<!--                         <li class="no-children"><a class="menu-title" target="main-iframe" href="/dataBase/project/list.html" id="project" data-id="project"><span class="menu-text">设置项目构成</span></a></li>
 -->                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/templet/planTemplet/list.html" id="planTemplet" data-id="planTemplet"><span class="menu-text">设置模板信息</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/dataBase/examine/list.html" id="examine" data-id="examine"><span class="menu-text">设置考核标准</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/dataBase/earlyWarning/list.html" id="earlyWarning" data-id="earlyWarning"><span class="menu-text">设置预警信息</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/dataBase/category/list.html" id="category" data-id="category"><span class="menu-text">设置成果类别</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/dataBase/typeOfService/list.html" id="typeOfService" data-id="typeOfService"><span class="menu-text">设置业务板块</span></a></li>
                    	<li class="no-children"><a class="menu-title" target="main-iframe" href="/dataBase/function/list.html" id="functionOffice" data-id="functionOffice"><span class="menu-text">设置职能中心</span></a></li>
                    </ul>
                </li>
                <li class="has-children" shiro:hasAnyRoles="root,admin">
                	<a class="menu-title" id="planning" data-id="planning"><span class="menu-text">计划编制</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planning/keyPoint/list.html" id="keyPointPlanning" data-id="keyPointPlanning"><span class="menu-text">关键节点计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planning/mainItemPlan/list.html" id="mainItemPlanPlanning" data-id="mainItemPlanPlanning"><span class="menu-text">项目主项计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planning/specialPlan/list.html" id="specialPlanPlanning" data-id="specialPlanPlanning"><span class="menu-text">项目专项计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planning/funcPlan/list.html" id="funcPlanPlanning" data-id="funcPlanPlanning"><span class="menu-text">公司职能计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planning/drafts/list.html" id="draftsPlanning" data-id="draftsPlanning"><span class="menu-text">草稿箱</span></a></li>
                    </ul>
                 </li>
                 <li class="has-children" >
                	<a class="menu-title" id="fllow" data-id="fllow"><span class="menu-text">关注列表</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                          <li class="no-children"><a class="menu-title" target="main-iframe" href="/planning/monthlyPlan/list.html" id="monthlyPlanPlanning" data-id="monthlyPlanPlanning"><span class="menu-text">项目计划列表</span></a></li>
                    	  <li class="no-children"><a class="menu-title" target="main-iframe" href="/staging/monthlist.html" id="attentionmonthlyPlanPlanning" data-id="attentionmonthlyPlanPlanning"><span class="menu-text">关注计划列表</span></a></li>
                    </ul>
                 </li>
                <li class="has-children">
                	<a class="menu-title" id="program" data-id="program"><span class="menu-text">计划执行</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/program/keyPoint/list.html" id="keyPointProgram" data-id="keyPointProgram"><span class="menu-text">关键节点计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/program/mainItem/list.html" id="mainItemProgram" data-id="mainItemProgram"><span class="menu-text">项目主项计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/program/projectSpecial/list.html" id="projectSpecialProgram" data-id="projectSpecialProgram"><span class="menu-text">项目专项计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/program/funcPlan/list.html" id="funcPlanProgram" data-id="funcPlanProgram"><span class="menu-text">职能工作计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/program/monthlyPlan/list.html" id="monthlyPlanProgram" data-id="monthlyPlanProgram"><span class="menu-text">月度工作计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/program/planNode/list.html" id="planNodeProgram" data-id="planNodeProgram"><span class="menu-text">计划新增记录</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/program/planAdjustment/list.html" id="planAdjustmentProgram" data-id="planAdjustmentProgram"><span class="menu-text">计划调整记录</span></a></li>

                    </ul>
                </li>
                <li class="has-children" shiro:hasAnyRoles="root,admin,jiancha">
                <a class="menu-title" id="planSupervision" data-id="planSupervision"><span class="menu-text">计划督导</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planSupervision/keyPoint/list.html" id="keyPointSupervision" data-id="keyPointSupervision"><span class="menu-text">关键节点计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planSupervision/mainItem/list.html" id="mainItemSupervision" data-id="mainItemSupervision"><span class="menu-text">项目主项计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planSupervision/ProjectSpecial/list.html" id="ProjectSpecialSupervision" data-id="ProjectSpecialSupervision"><span class="menu-text">项目专项计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planSupervision/funcPlan/list.html" id="funcPlanSupervision" data-id="funcPlanSupervision"><span class="menu-text">职能工作计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planSupervision/monthlyPlan/list.html" id="monthlyPlanSupervision" data-id="monthlyPlanSupervision"><span class="menu-text">月度工作计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planSupervision/logging/list.html" id="logging" data-id="logging"><span class="menu-text">督导工作记录</span></a></li>
                    </ul></li>
                <li class="has-children" shiro:hasAnyRoles="root,admin,jiancha">
                	<a class="menu-title" id="resultsArchives" data-id="resultsArchives"><span class="menu-text">成果档案</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/resultsArchives/keyPoint/list.html" id="keyPointArchives" data-id="keyPointArchives"><span class="menu-text">关键节点成果</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/resultsArchives/mainItem/list.html" id="mainItemArchives" data-id="mainItemArchives"><span class="menu-text">项目主项成果</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/resultsArchives/ProjectSpecial/list.html" id="ProjectSpecialArchives" data-id="ProjectSpecialArchives"><span class="menu-text">项目专项成果</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/resultsArchives/funcPlan/list.html" id="funcPlanArchives" data-id="funcPlanArchives"><span class="menu-text">职能工作成果</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/resultsArchives/monthlyPlan/list.html" id="monthlyPlanArchives" data-id="monthlyPlanArchives"><span class="menu-text">月度工作成果</span></a></li>
                    </ul></li>
                <li class="has-children" >
                	<a class="menu-title" id="planAssessment" data-id="planAssessment"><span class="menu-text">计划考核</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planAssessment/keyPoint/list.html" id="keyPointAssessment" data-id="keyPointAssessment"><span class="menu-text">关键节点计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planAssessment/mainItem/list.html" id="mainItemAssessment" data-id="mainItemAssessment"><span class="menu-text">项目主项计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planAssessment/ProjectSpecial/list.html" id="ProjectSpecialAssessment" data-id="ProjectSpecialAssessment"><span class="menu-text">项目专项计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planAssessment/funcPlan/list.html" id="funcPlanAssessment" data-id="funcPlanAssessment"><span class="menu-text">职能工作计划</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/planAssessment/monthlyPlan/list.html" id="monthlyPlanAssessment" data-id="monthlyPlanAssessment"><span class="menu-text">月度工作计划</span></a></li>
                    </ul></li>
                <li class="has-children" >
<!--                 <li class="has-children" shiro:hasPermission="user1"> -->
                	<a class="menu-title" id="report" data-id="report"><span class="menu-text">统计报表</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/report/keyPoint/list.html" id="keyPointReport" data-id="keyPointReport"><span class="menu-text">关键节点计划统计</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/report/mainItem/list.html" id="mainItemReport" data-id="mainItemReport"><span class="menu-text">项目主项计划统计</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/report/ProjectSpecial/list.html" id="ProjectSpecialReport" data-id="ProjectSpecialReport"><span class="menu-text">项目专项计划统计</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/report/funcPlan/list.html" id="funcPlanReport" data-id="funcPlanReport"><span class="menu-text">职能工作计划统计</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/report/monthlyPlan/list.html" id="monthlyPlanReport" data-id="monthlyPlanReport"><span class="menu-text">月度工作计划统计</span></a></li>
                    </ul>
                </li>
                <li class="has-children" shiro:hasRole="root" >
                	<a class="menu-title" id="rbc" data-id="rbc"><span class="menu-text">系统管理</span><span class="menu-arrow fa"></span></a>
                    <ul class="menu-submenu">
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/rbac/role/list.html" id="role" data-id="role"><span class="menu-text">角色管理</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/rbac/user/list.html" id="user" data-id="user"><span class="menu-text">用户管理</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/rbac/item/list.html" id="itemRole" data-id="itemRole"><span class="menu-text">项目权限</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/rbac/function/list.html" id="functionRole" data-id="functionRole"><span class="menu-text">职能权限</span></a></li>
                        <li class="no-children"><a class="menu-title" target="main-iframe" href="/dataBase/dictionary/list.html" id="dictionary" data-id="dictionary"><span class="menu-text">字典管理</span></a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>

    <div class="main">
        <div id="mainTabs" class="mini-tabs main-tabs" activeIndex="0" style="height:100%;" plain="false"
             buttons="#tabsButtons" arrowPosition="side" >
            <div name="mainTitle" title="工作台">
                <iframe name="main-iframe" id="main-iframe" src="/staging/list.html" style="width:100%;height:100%;" frameborder="0"></iframe>
            </div>
        </div>
       
        <!--<div id="tabsButtons">-->
            <!--<a class="tabsBtn"><i class="fa fa-home"></i></a>-->
            <!--<a class="tabsBtn"><i class="fa fa-refresh"></i></a>-->
            <!--<a class="tabsBtn"><i class="fa fa-remove"></i></a>-->
            <!--<a class="tabsBtn"><i class="fa fa-arrows-alt"></i></a>-->
        <!--</div>-->
    </div>

</div>


</body>
</html>
<script>

    function activeTab(item) {
        var tabs = mini.get("mainTabs");
        var tab = tabs.getTab(item.id);
        if (!tab) {
            tab = { name: item.id, title: item.text, url: item.url, iconCls: item.iconCls, showCloseButton: true };
            tab = tabs.addTab(tab);
        }
        tabs.activeTab(tab);
    }

    $(function () {

        //menu
        // var menu = new Menu("#mainMenu", {
        //     itemclick: function (item) {
        //          if (!item.children) {
        //             activeTab(item);
        //          }
        //     }
        // });

        // $(".sidebar").mCustomScrollbar({ autoHideScrollbar: true });

        // new MenuTip(menu);
        $.ajax({
            url: "/index/indexHead",
            success: function (text) {
                var data = mini.decode(text);
                $(".userinfo").text(data.name);
            }
        });
        $("#mainMenu li").on('click', '.menu-title', function (event) {
            var el = $(event.currentTarget);

            var li = el.parent();
            $("li").each(function(index,obj){
                if($(obj).hasClass('has-children')){
                    $(obj).removeClass('menu-title-active ');
                }
                if($(obj).hasClass('no-children')){
                    $(obj).removeClass('menu-title-active');
                }
            });
            if(li.hasClass('has-children open')){
                li.removeClass('open menu-title-active');
            }else {
                li.addClass('open menu-title-active').siblings().removeClass('open menu-title-active');
            }

            var href = $(this).context.href;
            var text = $(this).context.innerText;
            if(href==""){
                return
            }else {
                $("#mini-1\\$1").load();
                $("#mini-1\\$1").html(text);
                $("#main-iframe").attr("src", href);
            }
            event.preventDefault();
        });
        // $.ajax({
        //     url: "/res/data/menu.txt",
        //     success: function (text) {
        //         var data = mini.decode(text);
        //         menu.loadData(data);
        //         //    获取到页面所有的li
        //         $("#mainMenu li").eq(0).addClass('menu-title-active');
        //         $('#mainMenu li').click(function(e){
        //             $("li").each(function(index,obj){
        //                 if($(obj).hasClass('has-children')){
        //                     $(obj).removeClass('menu-title-active');
        //                 }
        //                 if($(obj).hasClass('no-children')){
        //                     $(obj).removeClass('menu-title-active');
        //                 }
        //             });
        //         });
        //     }
        // });

        //toggle
        $("#toggle, .sidebar-toggle").click(function () {
            $('body').toggleClass('compact');
            // mini.layout();
        });

        //dropdown
        $(".dropdown-toggle").click(function (event) {
            if($(this).parent().hasClass("open")){
                $(this).parent().removeClass("open");
            }else {
                $(this).parent().addClass("open");
            }
            return false;
        });

        $(document).click(function (event) {
            $(".dropdown").removeClass("open");
        });


    });

</script>
